//
//  NSMutableAttributedString+CoreText.h
//  DGCoreTextView
//
//  Created by Jinxiao on 13-1-11.
//  Copyright (c) 2013年 debugeek. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreText/CoreText.h>

@interface NSMutableAttributedString (CoreText)

- (void)setParagraphWithLineBreakMode:(CTLineBreakMode)lineBreakMode textAlignment:(CTTextAlignment)textAlignment lineSpacingMin:(CGFloat)lineSpacingMin lineSpacingMax:(CGFloat)lineSpacingMax lineHeightMax:(CGFloat)lineHeightMax;
- (void)setParagraphWithLineBreakMode:(CTLineBreakMode)lineBreakMode textAlignment:(CTTextAlignment)textAlignment lineSpacingMin:(CGFloat)lineSpacingMin lineSpacingMax:(CGFloat)lineSpacingMax lineHeightMax:(CGFloat)lineHeightMax range:(NSRange)range;

- (void)setTextFont:(UIFont *)textFont;
- (void)setTextFont:(UIFont *)textFont range:(NSRange)range;

- (void)setTextColor:(UIColor *)textColor;
- (void)setTextColor:(UIColor *)textColor range:(NSRange)range;

- (void)setPattern:(NSDictionary *)pattern range:(NSRange)range;

@end
